﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

public class SortObjectsPostions : IComparer<Postion>
{
    public int Compare(Postion pos1, Postion pos2)
    {
        return (pos1.PosID < pos2.PosID) ? 1 : ((pos1.PosID > pos2.PosID) ? -1 : 0);
    }
}